#include <bits/stdc++.h>
// 2025/03/09
// tag: 
// Author: Forever
using namespace std;

using int64 = int64_t;

int N, Q, C, c[300001], q[300001][2];

void solve(){
    cin >> N >> Q >> C;
    for (int i = 1; i <= N; i++)
        cin >> c[i];
    for (int i = 1; i <= Q; i++)
        cin >> q[i][0] >> q[i][1];

}

signed main()
{
    ios::sync_with_stdio(false);
    cout.tie(0);
    cin.tie(0);
    int t;
    cin >> t;
    while (t--)
    {
        
    }
    return 0;
}